<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<TestKontrole2.RevizijskiCiklus>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Odluka
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Odluke</h2>
<% using (Html.BeginForm("TheEnd", "TestKontrole", FormMethod.Get)) {%>
<%      int i = -1;
        foreach (var item in Model.getKontrole()) {
            i++;
    %>
    <table border="0" width="100%" cellpadding="0" cellspacing="0">
        <tr>
            <td width="30%">
                <label>
                    Opis kontrole:
                </label>
            </td>
            <td width="70%">
                <%= item.OpisKontrole.ToString() %>
            </td>
        </tr>
        <tr>
            <td width="30%">
                <label>
                    Kontrolni rizik:
                </label>
            </td>
            <td width="70%">
                <%= item.KontrolniRizik.ToString() %>
            </td>
        </tr>
        <tr>
            <td width="30%">
                <label>
                    Dopustiva stopa devijacije:
                </label>
            </td>
            <td width="70%">
                <%= item.DopustivaStopaDevijacije.ToString() %>
            </td>
        </tr>
        <tr>
            <td width="30%">
                <label>
                    Ocekivana stopa devijacije:
                </label>
            </td>
            <td width="70%">
                <%= item.OcekivanaStopaDevijacija.ToString() %>
            </td>
        </tr>
        <tr>
            <td width="30%">
                <label>
                    Velicina uzorka:</label>
            </td>
            <td width="70%">
                <%= item.getVelicinaUzorka().ToString() %>
            </td>
        </tr>
        <tr>
            <td width="30%">
                <label>
                    Velicina populacije:</label>
            </td>
            <td width="70%">
                <%= item.VelicinaPopulacije.ToString() %>
            </td>
        </tr>
        <tr>
            <td width="30%">
                <label>
                    Dopustiv broj devijacija:</label>
            </td>
            <td width="70%">
                <%= item.DopustivBrojDevijacija.ToString() %>
            </td>
        </tr>
        <tr>
            <td width="30%">
                <label>
                    Izracunata gornja stopa devijacije:</label>
            </td>
            <td width="70%">
                <%= item.getIGStopaDevijacije().ToString() %>
            </td>
        </tr>
        <tr>
            <td width="30%">
                <label>
                    Odluka revizora:</label>
            </td>
            <td width="70%">
                <%= Html.TextArea("odlukaRev"+i.ToString(), "TestKOnt", 5, 40, null)%>
            </td>
        </tr>
    </table>
    <hr />
    <%
        }
    %>
   
    <%= Html.Hidden("revCik",Model.Naziv) %>
    <input type="submit" value="Odluka" />
    <% } %>
</asp:Content>
